const Layout = () => import('@/layout/index.vue');

const exchangeCodeRouter = {
  path: '/exchange-code',
  component: Layout,
  meta: {
    alwaysShow: true,
    title: '兑换码管理',
    icon: 'ticket',
    roles: ['admin', 'editor']
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/exchangeCode/index.vue'),
      name: 'ExchangeCodeList',
      meta: {
        title: '兑换码列表',
        icon: 'list',
        roles: ['admin']
      }
    }
  ]
};

export default exchangeCodeRouter;
